package cn.com.jenson.service.system.handler;

import cn.com.jenson.common.Result;
import cn.com.jenson.exception.BusinessException;
import org.springframework.web.bind.annotation.*;

@ControllerAdvice(annotations = RestController.class)
@ResponseBody
public class CustomExceptionHandler {

//    @ExceptionHandler(BusinessException.class)
//    @ResponseStatus
//    public Result<String> accessException(BusinessException e){
//        e.printStackTrace();
//        return Result(401, e.getMessage()).with();
//    }

}
